package com.ruoyi.resume.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 教育背景对象 cv_educational_background
 *
 * @author ruoyi
 * @date 2024-05-30
 */
public class CvEducationalBackground extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 教育背景id
     */
    @Excel(name = "教育背景id")
    private Long id;

    /**
     * 基本信息id
     */
    @Excel(name = "基本信息id")
    private Long informationId;

    /**
     * 入学时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入学时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entranceTime;

    /**
     * 毕业时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "毕业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date graduateTime;

    /**
     * 毕业学校
     */
    @Excel(name = "毕业学校")
    private String graduateSchool;

    /**
     * 所学专业
     */
    @Excel(name = "所学专业")
    private String graduateMajor;
    /**
     * 学历
     */
    @Excel(name = "学历")
    private String graduateBackground;

    public String getGraduateBackground() {
        return graduateBackground;
    }

    public void setGraduateBackground(String graduateBackground) {
        this.graduateBackground = graduateBackground;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setInformationId(Long informationId) {
        this.informationId = informationId;
    }

    public Long getInformationId() {
        return informationId;
    }

    public void setEntranceTime(Date entranceTime) {
        this.entranceTime = entranceTime;
    }

    public Date getEntranceTime() {
        return entranceTime;
    }

    public void setGraduateTime(Date graduateTime) {
        this.graduateTime = graduateTime;
    }

    public Date getGraduateTime() {
        return graduateTime;
    }

    public void setGraduateSchool(String graduateSchool) {
        this.graduateSchool = graduateSchool;
    }

    public String getGraduateSchool() {
        return graduateSchool;
    }

    public void setGraduateMajor(String graduateMajor) {
        this.graduateMajor = graduateMajor;
    }

    public String getGraduateMajor() {
        return graduateMajor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("informationId", getInformationId())
                .append("entranceTime", getEntranceTime())
                .append("graduateTime", getGraduateTime())
                .append("graduateSchool", getGraduateSchool())
                .append("graduateMajor", getGraduateMajor())
                .append("graduateBackground", getGraduateBackground())
                .toString();
    }
}
